﻿using Furion.DynamicApiController;
using HOPU.OnlineSchool.Application.Npoi.Service;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HOPU.OnlineSchool.Application.Npoi
{
    public class NpoiAppService : IDynamicApiController
    {
        private readonly INpoiService _npoiService;

        public NpoiAppService(INpoiService npoiService)
        {
            _npoiService = npoiService;
        }
        [AllowAnonymous]
        public async Task<string> SubjectImpor(IFormFile file)
        {
            return await _npoiService.SubjectImportsync(file);
        }
    }
}
